/*
 * Created on 25.06.2006 by leck
 *
 */
package de.devisnik.eidle.picture;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.widgets.Composite;

import de.devisnik.eidle.screen.IScreen;

public class SlideshowScreen extends MultiImageScreen {

	public SlideshowScreen() {
		super("Slideshow");
	}

	public ImageDescriptor[] createImageDescriptors() {
		return FileUtils.getImagesInDirectory(SlideShowPreferences
				.getGlobalImagePath());
	}

	protected IScreen createPictureScreen(final Composite parent,
			final ImageDescriptor descriptor) {
		final PictureScreen pictureScreen = new PictureScreen(descriptor,
				SlideShowPreferences.getPresentationTime() * 1000);
		return pictureScreen;
	}

}
